// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.enums;

/**
 * 项目专利阶段类型枚举
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2024-04-28
 */
public enum ProjectPatentStageEnum {

    //    STAGE_ONE(1, "阶段一"),
//    STAGE_TWO(2, "阶段二"),
//    STAGE_THREE(3, "阶段三"),
//    STAGE_FOUR(4, "阶段四"),
//    STAGE_FIVE(5, "阶段五"),
//    STAGE_SIX(6, "阶段六");
    STAGE_ONE(1, "预研"),
    STAGE_TWO(2, "立项"),
    STAGE_THREE(3, "方案确认"),
    STAGE_FOUR(4, "正式样机"),
    STAGE_FIVE(5, "小批试制"),
    STAGE_SIX(6, "生产放行");

    private int value;

    private String name;

    ProjectPatentStageEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static String getNameByValue(int value) {
        ProjectPatentStageEnum arrObj[] = ProjectPatentStageEnum.values();
        for (ProjectPatentStageEnum obj : arrObj) {
            if (value == obj.getValue()) {
                return obj.getName();
            }
        }
        return " ";
    }

}
